package com.huarui.saleOrder.dao;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.IBaseDao;

public interface ISaleOrderDao extends IBaseDao{
	/**
	 * 概要浏览查询
	 * @param paramsMap
	 * @return
	 */
	public List<Map<String, Object>> querySaleOrdersListByComplex(Map<String, Object> paramsMap);
	
	/**
	 * 概要浏览总数量查询
	 * @param paramsMap
	 * @return
	 */
	public Integer querySaleOrdersListCountByComplex(Map<String, Object> paramsMap);
	
	/**
	 * 处理采购订单
	 * @param paramsMap
	 */
	public boolean takeOverPurchaseOrder(Map<String, Object> paramsMap);
	
	/**
	 * 查询销售订单主单
	 * @param paramsMap
	 * @return
	 */
	public Map<String, Object> loadSaleOrderById(Map<String, Object> paramsMap);
	
	/**
	 * 更改当前处理人
	 * @param paramsMap
	 * @return
	 */
	public boolean updateSaleOrderCurrentor(Map<String, Object> paramsMap);
	
	/**
	 * 退回采购订单
	 * @param paramsMap
	 * @return
	 */
	public boolean turnBackPurchaseOrder(Map<String, Object> paramsMap);

	public boolean updateSaleOrderStatus(Map<String, Object> map);

	public boolean clearSaleOrderCurrentorById(Integer id);

	public Map<String,Object> getSaleOrderForMapById(Integer orderId);
}
